package com.teaphy.demo;

import com.teaphy.annotation.C;
import com.teaphy.annotation.D;
import com.teaphy.data.Student;

public class TestInherited {

	@SuppressWarnings("uncheck")
	public static void main(String[] args) {
		Class clz = Student.class;
		
		// Log: Student is annotated by C: false
		System.out.println("Student is annotated by C: " + clz.isAnnotationPresent(C.class));
		// Student is annotated by D: true
		System.out.println("Student is annotated by D: " + clz.isAnnotationPresent(D.class));
	}
	
}
